// my.js
const request = require('./config/request')
const {
  BASEPASSPORTURL,
  BASEAPIURL,
  BASEAPIAIIIIN
} = require('./config/config')

module.exports = {
  // 获取验证码
  getVerificationCode(data) {
    let url = BASEAPIURL + '/api/app/sms/send-sms'
    return request.post({
      url,
      data
    })
  },
  phoneAndWxLogin(data) {
    let url = BASEPASSPORTURL + '/connect/token'
    return request.post({
      url,
      data,
      form: true
    })
  },
  getaidicitembytype(data) {
    let url = BASEAPIAIIIIN + '/app/dictionary/getaidicitembytype'
    return request.post({
      url,
      data
    })
  },
  getphone(data) {
    let url = BASEPASSPORTURL + '/api/opnelogin/getphone'
    return request.get({
      url,
      data
    })
  },
}